﻿using AutoMapper;
using MyBlog.Model;
using MyBlog.Model.DTO;

namespace Utility
{
    public class CustomAutoMapperProfile : Profile
    {
        /// <summary>
        /// 映射文件,返回到前端
        /// </summary>
        public CustomAutoMapperProfile()
        {
            //原类型,映射后的类型
            base.CreateMap<WriterInfo, WriterDTO>();
            //然后去WebApi主工程服务注册
        }
    }
}
